// 封装 推荐页 所需接口
import request from "../util/request";

// 获取轮播图
export function get_banner(type = 0) {
  return request({
    url: "/banner",
    params: {
      type,
    },
  });
}

// 获取推荐歌单
export function get_personalized(limit = 6) {
  return request({
    url: "/personalized",
    params: {
      limit,
    },
  });
}

// 获取推荐新音乐
export function get_newsong() {
  return request({
    url: "/personalized/newsong",
  });
}
